package com.mazaiting.sms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.ComponentScan;

/**
 * SMS 主启动
 *
 * @author mazaiting
 * @create_time 2022/3/28 19:14
 */
@RefreshScope
@EnableDiscoveryClient
@SpringBootApplication
//@ComponentScan(basePackages = {
////        "com.mazaiting.common",
//        "com.mazaiting.sms",
//        "com.mazaiting.rabbitmq",
//        "com.mazaiting.redisson",
//        "com.mazaiting.redis"
//})
@ComponentScan(basePackages = "com.mazaiting")
@ServletComponentScan(basePackages = "com.mazaiting")
public class ApolloSmsApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(ApolloSmsApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
